import BookmarkPreview from "@/components/dashboard/bookmarks/BookmarkPreview";
import { api } from "@/server/api/client";

export default async function BookmarkPreviewPage({
  params,
}: {
  params: { bookmarkId: string };
}) {
  const bookmark = await api.bookmarks.getBookmark({
    bookmarkId: params.bookmarkId,
  });

  return (
    <div className="max-h-screen p-4">
      <BookmarkPreview initialData={bookmark} />
    </div>
  );
}
